package com.builder;

public class Notification {

	private String message;
	private String time;

	public static class Builder {
		private String message;
		private String time;
		public Builder() {

		}

		public Builder(String message, String time) {
			this.message = message;
			this.time = time;
		}

		public Builder message(String message) {
			this.message = message;
			return this;
		}

		public Builder time(String time) {
			this.time=time;
			return this;
		}

		public Notification build() {
			return new Notification(this);
		}

	}

	private Notification(Builder builder) {
		this.message = builder.message;
		this.time = builder.time;

	}

	public String getMessage() {
		return message;
	}


	public String getTime() {
		return time;
	}



}
